package net.towee.client.com.repo;

import net.towee.client.com.app.Presenter;
import net.towee.model.account.AccountIdentity;
import net.towee.model.repo.DocumentData;
import net.towee.model.repo.DocumentType;
import net.towee.model.repo.NodeData;

public interface RepositoryDocumentEditor extends Presenter {

	/**
	 * Set document for editing
	 * @param doc
	 * @param parentNode TODO
	 */
	void setDocument(DocumentData doc, NodeData parentNode);
	
	/**
	 * Create and set new document with given general type
	 * @param type
	 * @param parentNode TODO
	 * @param account TODO
	 */
	void setEmptyDocument(DocumentType type, NodeData parentNode, AccountIdentity account);

	/**
	 * Set current active document type 
	 * @param type
	 */
	void setDocumentType(DocumentType type);
}
